function initEditor() {
  tinymce.init({
    //选择class为content的标签作为编辑器
    selector: 'textarea',

    skin: 'tinymce-5',
    //方向从左到右
    directionality: 'ltr',
    //语言选择中文
    language: 'zh_CN',
    //高度为400
    height: 300,
    statusbar: false,
    width: '100%',
    //工具栏上面的补丁按钮
    plugins: 'link code lists advlist codesample preview image insertdatetime table',

    //工具栏上面的补丁按钮
    toolbar: 'link code undo redo hr bold italic  alignleft aligncenter alignright alignjustify bullist numlist outdent indent codesample forecolor preview image insertdatetime table underline strikethrough selectall copy paste removeformat subscript superscript',

    //字体大小
    fontsize_formats: '12px 14px 16px 18px 24px 36px 48px 56px 72px',
    //按tab不换行
    nonbreaking_force_tab: true
    //   imageupload_url: '/user/submit-image'
  })
}
